package mono;

import java.util.Random;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;

public class Mono2 {


    public CompletionStage<Integer> createNum() {
        return CompletableFuture.completedFuture(new Random().nextInt(10));
    }

}
